import http from "@/utils/http"

// 获取轮播图数据
export const getBannerAPI = (params = {}) => {
  const { distributionSite = '1' } = params
  return http.get('/home/banner', {
    params: {
      distributionSite
    }
  })
}

// 获取新鲜好物
export const findNewAPI = () => http.get('/home/new')

// 获取热门
export const getHotAPI = () => http.get('/home/hot')

// 获取产品
export const getGoodsAPI = () => http.get('/home/goods')
